package com.foreknow.entity;

import java.io.Serializable;
import java.util.Date;

public class Prescription implements Serializable {
    /**
     * ID主键
     *
     * @mbggenerated
     */
    private Integer id;

    /**
     * 病历ID
     *
     * @mbggenerated
     */
    private Integer medicalid;

    /**
     * 挂号ID
     *
     * @mbggenerated
     */
    private Integer registid;

    /**
     * 开立医生ID
     *
     * @mbggenerated
     */
    private Integer userid;

    /**
     * 处方名称
     *
     * @mbggenerated
     */
    private String prescriptionname;

    /**
     * 开立时间
     *
     * @mbggenerated
     */
    private Date prescriptiontime;

    /**
     * 处方状态
     *
     * @mbggenerated
     */
    private Integer prescriptionstate;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMedicalid() {
        return medicalid;
    }

    public void setMedicalid(Integer medicalid) {
        this.medicalid = medicalid;
    }

    public Integer getRegistid() {
        return registid;
    }

    public void setRegistid(Integer registid) {
        this.registid = registid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getPrescriptionname() {
        return prescriptionname;
    }

    public void setPrescriptionname(String prescriptionname) {
        this.prescriptionname = prescriptionname;
    }

    public Date getPrescriptiontime() {
        return prescriptiontime;
    }

    public void setPrescriptiontime(Date prescriptiontime) {
        this.prescriptiontime = prescriptiontime;
    }

    public Integer getPrescriptionstate() {
        return prescriptionstate;
    }

    public void setPrescriptionstate(Integer prescriptionstate) {
        this.prescriptionstate = prescriptionstate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", medicalid=").append(medicalid);
        sb.append(", registid=").append(registid);
        sb.append(", userid=").append(userid);
        sb.append(", prescriptionname=").append(prescriptionname);
        sb.append(", prescriptiontime=").append(prescriptiontime);
        sb.append(", prescriptionstate=").append(prescriptionstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}